/**
 * This code is released under lgpl v3 license.
 * All rights reserved.
*/

package flash.net;

import bridge.AS3Proxy;
import bridge.FABridge;
import com.google.gwt.core.client.JavaScriptObject;

/**
 *
 * @author yuan yunchang    dukerr@gmail.com
 */
public class URLRequest extends AS3Proxy{
    static String className = "flash.net.URLRequest";
    protected URLRequest() {
    }
    public static final  URLRequest createURLRequest(String bridgeName){
        return (URLRequest)(FABridge.get().getInstance(bridgeName).create(className));
    }
    public final native String getUrl()/*-{
    return this.getUrl()
    }-*/;
    public final native void setUrl(String url)/*-{
    this.setUrl(url)
    }-*/;
    public final native String getMethod()/*-{
    return this.getMethod()
    }-*/;
    public final native String setMethod(String method)/*-{
    this.setMethod(method)
    }-*/;

}
